﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sexybeauty.Core.Inf.Entities.Table;

namespace Sexybeauty.Core.Inf.LogicEntity
{
    public class FrendsEntity : IAccessible<Frends,FrendsEntity>
    {
        #region Fileds
        public int Id { get; set; }
        public string Master { get; set; }
        public string Frend { get; set; }
        public DateTime RcdDate { get; set; }
        #endregion

        protected override void Covariant(Frends dbModel)
        {
            this.Id = dbModel.Id;
            this.Master = dbModel.Master;
            this.Frend = dbModel.Frend;
            this.RcdDate = dbModel.RcdDate;
        }
        protected override Frends Inverter(FrendsEntity model)
        {
            return new Frends()
            {
                Frend = model.Frend,
                Id = model.Id,
                Master = model.Master,
                RcdDate = model.RcdDate
            };
        }
    }
}
